package com.zhouyu.service;

import com.zhouyu.spring.BeanNameAware;
import com.zhouyu.spring.Component;
import com.zhouyu.spring.InitializingBean;

@Component
public class OrderService  implements BeanNameAware, InitializingBean {

    private String beanName;

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("InitializingBean afterPropertiesSet 初始化方法");
    }
}
